package com.lk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lk.model.domain.Post;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface PostService extends IService<Post> {

    int addPost(Post post);

    List<Post> selectAll();

    String saveFile(MultipartFile file, HttpServletRequest request);

    int addLike(Long postId, Long userId);

    int lessLike(Long postId, Long userId);

    String getCommentDetail(Long postId);

    int addComment(Long postId, String json);

    void updateCommentNum(Long postId, int size);

    int deletePost(Long postId);
}
